<?php
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/

  defined('_JEXEC') or die('Retricted Access');
  global $option;
  $item = $this->item;
  
  $editor =& JFactory::getEditor();
  $username = JRequest::getVar('username');
  $user_id = JRequest::getVar('userid');
  if ($user_id)
  $item->user_id = $user_id;
  $item_title = JRequest::getVar('item_title');
 ?>
	

<div id="jobboard-content">
<form name="adminForm" action="<?php echo JURI::root();?>index.php" method="post" enctype="multipart/form-data">
	<div class="moduletable job-box">
	<h3>
		<?php echo JText::_('Transaction Details')?>
	</h3>
	<table class="tabledata transdetails">
		<tr class="first">
			<td class=" first">
				<label>
					<?php echo JText::_( 'Receipt ID' ); ?>:					
				</label>
				
			</td>
			<td class="last">
				<?php echo $item->txn_id; ?>								
			</td>
		</tr>
		<tr>
			<td class=" first">
				<label for="product_id">
					<?php echo JText::_( 'Product name' ); ?>:					
				</label>							
			</td>
			<td class="last">
				<?php echo $item_title; ?>
			</td>
		</tr>
		
		<tr>
			<td class=" first">
				<label for="created_date">
					<?php echo JText::_( 'Created date' ); ?>:							
				</label>												
			</td>
			<td class="last">
				<?php  echo $item->created_date; ?>						
			</td>
		</tr>
		
		<tr>
			<td class=" first">
				<label for="amount">
					<?php echo JText::_('Amount' ); ?>
				</label>
			</td>
			<td class="last">
				<?php echo $item->amount.'&nbsp;'.$item->currency_code; ?>
			</td>
		</tr>
		<tr>
			<td class=" first">
				<?php echo JText::_( 'Status' ); ?>:						
			</td>
			<td class="last">
				<?php echo ($item->completed=='1')?'Completed':'Revert'; ?>		
			</td>
		</tr>
		<?php if($item->processed_date!=''){?>			
		<tr>
			<td class=" first">
				<?php echo JText::_( 'Processed date' ); ?>:							
			</td>
			<td class="last">
				<?php  echo $item->processed_date; ?>						
			</td>
		</tr>
		<?php }?>						
		<tr>
			<td class=" first">
				<?php echo JText::_( 'Product type' ); ?>:	
			</td>
			<td class="last">
  				<?php 
  					echo $this->product_type[$item->product_type];				
  				?>								
			</td>
		</tr>
		<tr>
			<td class=" first">
				<?php echo JText::_( 'Product value' ); ?>:	
			</td>
			<td class="last">
     			<?php echo $item->value;?>
			</td>
		</tr>		
		<tr>
			<td class=" first">
				<?php echo JText::_( 'Payment Method' ); ?>:
			</td>
			<td class="last">
				<?php
					echo $item->payment_method;
				?>
			</td>
		</tr>						
		<tr>
			<td class="first">
					<?php echo JText::_( 'IP Address' ); ?>:
			</td>
			<td class="last">
				<?php echo $item->ip; ?>
			</td>
		</tr>
        <tr>
			<td class=" first">
					<?php echo JText::_( 'Details' ); ?>:				
			</td>
			<td class="last">
				<?php echo $item->detail; ?>
					
			</td>
		</tr>		
		<?php if($item->reason!=''){?>					
			<tr>
				<td class=" first">
						<?php echo JText::_( 'Reason' ); ?>:
				</td>
				<td class="last">
					<?php echo JText::_($item->reason); ?>
				</td>
			</tr>	
		<?php }?>			
	</table>
	</div>
	
	
	<?php if ($item->product_type=='P'){?>
	<div id="product_detail_P" style="display:block;">
	<?php }else{?>
	<div id="product_detail_P" style="display:none;">
	<?php	}	?>
	<div class="moduletable job-box">
		<h3>
		    <?php echo JText::_('Product Information')?>
		</h3>
		
		<table class="tabledata transdetails">
			<tr >
				<td class="key" width="20%">
					<label for="value_type">
						<?php echo JText::_( 'Posting plan type' ); ?>:	
					</label>
				</td>
				<td>
		    				<?php 
		    					echo $this->value_type[$item->value_type];				
		    				?>								
				</td>
			</tr>								
		</table>

	</div>
	</div>
	<?php
	
	if (($item->product_type=='S') || ($item->product_type=='M') || ($item->product_type==null))
		echo '<div id="product_detail_SM" style="display:block;">';
	else 
		echo '<div id="product_detail_SM" style="display:none;">';
	?>
	<div class="moduletable job-box">
			<table class="tabledata transdetails">
				
				<tr>
					<td class="key">
						<label for="begin_date">
							<?php echo JText::_( 'Begin Date' ); ?>:	
						</label>
					</td>
					<td>
       				<?php  echo $item->begin_date; ?>									
					</td>
				</tr>							
				<tr>
					<td class="key">
						<label for="end_date">
							<?php echo JText::_( 'End Date' ); ?>:	
						</label>
					</td>
					<td>
       				<?php  echo $item->end_date; ?>								
					</td>
				</tr>						
			</table>

	</div>
	</div>
		
</form>
</div>